﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for UserBLL
/// </summary>
public class UserBLL
{
    UserDAL userDAL;

	public UserBLL()
	{
        try
        {
            /*initilaize db variables*/
            userDAL = new UserDAL();
        }
        catch (Exception ex)
        {
            throw ex;
        }
	}

    public DataResponse<User> GetUser(string username)
    {
        return userDAL.GetUser(username);
    }

    public DataResponse<User> CreateUser(User user)
    {
        return userDAL.CreateUser(user);
    }

    public DataResponse<bool?> ChangePassword(User user, string newPassword)
    {
        return userDAL.ChangePassword(user, newPassword);
    }
}